import request from '/@/utils/request'
import {module} from '/@/api/ums'

export default {
  page(params) {
    return request({
      url: module + '/customerEstimateTrade/page',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: module + '/customerEstimateTrade/add',
      method: 'post',
      data
    })
  },
  edit(data) {
    return request({
      url: module + '/customerEstimateTrade/edit',
      method: 'post',
      data
    })
  },
  del(data) {
    return request({
      url: module + '/customerEstimateTrade/del',
      method: 'post',
      data
    })
  },
  listWithRate(customerId) {
    return request({
      url: module + '/customerEstimateTrade/listWithRate?customerId=' + customerId,
      method: 'get'
    })
  },
  /**
   * 修改评估值
   */
  saveRate(data) {
    return request({
      url: module + '/customerEstimateTrade/saveRate',
      method: 'post',
      data
    })
  }
}
